APP & REST : Login Logout realized by a naive method