I updated log in function and changed the GUI little bit. The function is using database now in order to check the log info