Uhm, I already tried that code po but that causes logical error. So, I need to check first po whether $uid is defined before proceeding to the validation of user's username