made login working, but improvements still need to be done