moved authentication logic to modules directory
merge bullshit