Updated Login to include the type of user that logs in.
Cleaned up the part functionality.