Added trim for login