more sign in improvements
delete unused code and fix things