working login from scotch.io tutorial