Sign In and Authentication

Fixed Sign In and Authentication bugs.