Modified login functionality in Auth controller