Functions moved from signup to functies.php