Added authentication.py and modfied __init__.py to improve modularity