Fix file names to LogIn, remove code repeating and change return; to else construction