A working login with error detection and a dynamic navbar

Problem with the dynamic navbar D: