User authentication module

final changes to authentication module