added more conditions to phone login