Fix edit button when not logged

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>