Registration and login messages

Pop-up messages and redirecting used instead of creating pages error.php
and register_success.php