refactored sign in method to the network controller