Moving of code from user_add to user.php