Adding usernameAvailable function and other helpers in main.m
Updating main.m with some helper functions