adding error checking to signup
tidying up code
updated page title
fixing code back to earlier
fixing code back to earlier