Added loginCheck method.
Also working on persistence.
Merge pull request #44 from Gruppe01/persistence-updatehandler

Added loginCheck method.