Login bug involving incorrect use of exit(); function solved