making sign in work properly