Fix issue with python method argument stacking in login

While I'm here add logging to account.views

Ticket:	#3394