fixed some parts of log-in