fix login command
add reconstruction of secret when retrieving it