Add user login logout but problem with checkbox