fix bug of the login and make the new register file