there are still some logic issues with the authentications controller but it is in a working state - also needs to be cleaned up quite a bit