working login, fixed views