adding more features to sign in controller