ver-2 with user registration