differentiate from login and register, very nasty way of doing this