edited helper method
Sign in and Sign out is working