Change user login status conditional