Pull Request Dev_1.0

I changed the valid_username to check_username_format po and put the notice("Username is invalid","error") inside it so i just called the function check_username_format turning my code into one line only