login system works but has a big bug try to fix later