Fixes#3 login implementation