login function added. need more work