fixing error for login routing