Adds back end check for log in

fixes #2