Removed break statement, thereby getting login via ajax wokring once more