issue-#5

finish authentication logic, signup still needed but pushed back.