jshints, jshints, jshints!

there is a possibility that you can not login with a character. check then the naming of the field 'characterused'  in bcs_users.