login in and out now implemented