modify user login methods to sync with frontend