register.php, PHP form validation added, functions.php - functions library added