Added check for sign_up_enabled. 

fix correct indents + fix file location.