fixed show message on main page, added mapping for user registration