bugfix and added signout