fixed issue with register -> login