[#17] reg/login validation