-Resoure factory save fix
-Logout functionality