fix file detection to prevent unnecessary updates to default files
add validation and error for username to signup