Modified buyer log-out and implemented logging

* added a custom appender that modifies each time the name of
the file in which the logging will be made
* modified conditions in which a buyer can logout
* modified the validation for displaying right click menus

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>