added user authentication, revised index, revised some views