finished the sign in functionallity added functional tests and added logout functionallity