check reg/login