Modified for login from sencha