Without changing any code, you can enable/disable the login form:
go to WP admin
menu Woocommerce > Settings
tab Accounts & Privacy
and you'll find the options you need.