changes to logging in and registration mobile API to also return logged in user