Index page, signing in and signing up pages working with error handling