added user authentication & registration