bug fixing [it was not possible to login twice]