Added login capabilties and added a forgotten unique constraint on users table.