updated the checklogin script
updated the registration page to add users to the database