Write automatically the last registred login
Signed-off-by: Nightmaster <nightmaster@seitaer.com>