Fixed object for login model

changed query from result to row method to fetch user data