reg to login working