Added login feature.

Added login feature including. Will redirect if correct details, else
error will appear in console. Messages are only displayed in console.